<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:osms="http://java.sun.com/jsf/composite/osms">
<composite:interface>
	<composite:attribute name="panel"></composite:attribute>
	<composite:attribute name="disabled"></composite:attribute>
	<composite:attribute name="name"></composite:attribute>
	<composite:facet name="commands"></composite:facet>
</composite:interface>
<composite:implementation>
	<h2>#{cc.attrs.name}</h2>
	<osms:messageBox />
	<h:form class="well form-horizontal">
		<fieldset>
			<div class="control-group">
				<label class="control-label" for="input01">Parent:</label>
				<div class="controls">
					<h:selectOneMenu disabled="#{cc.attrs.disabled}"
						value="cc.attrs.panel.categoryIdentifier">
						<f:selectItems value="#{cc.attrs.panel.categories}" var="cat"
							itemLabel="#{cat.title}" itemValue="#{cat.indentifier}" />
					</h:selectOneMenu>
					
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="input01">Name:</label>
				<div class="controls">
					<h:inputText class="input-medium search-quer"
						value="#{cc.attrs.panel.category.name}" disabled="#{cc.attrs.disabled}" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="input01">Description:</label>
				<div class="controls">
					<h:inputText class="input-medium search-quer"
						value="#{cc.attrs.panel.category.description}"
						disabled="#{cc.attrs.disabled}" />
				</div>
			</div>
			<div class="control-group">
				<!-- 				<label class="control-label" for="input01">Name:</label> -->
				<div class="controls">
					<composite:renderFacet name="commands"></composite:renderFacet>
				</div>
			</div>
		</fieldset>
	</h:form>

</composite:implementation>
</html>